package com.pangda.pojo;

import java.math.BigDecimal;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.*;

import java.sql.Date;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商机管理
 * </p>
 *
 * @author author
 * @since 2024-06-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("business")
@ApiModel(value="Business对象", description="商机管理")
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "活动ID")
    private String activityId;

    @ApiModelProperty(value = "活动介绍")
    private String activityInfo;

    @ApiModelProperty(value = "活动名称")
    private String activityName;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "分配人名称")
    private String assignBy;

    @ApiModelProperty(value = "分配时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime assignTime;

    @ApiModelProperty(value = "渠道来源")
    private String channel;

    @ApiModelProperty(value = "地区")
    private String city;

    @ApiModelProperty(value = "线索ID")
    private Integer clueId;

    @ApiModelProperty(value = "课程管理ID")
    private Integer courseId;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "目标薪资")
    @TableField(value = "expected_salary")
    private Long expectedSalary;

    @ApiModelProperty(value = "错误次数")
    private Integer falseCount;

    @ApiModelProperty(value = "在职情况")
    private String job;

    @ApiModelProperty(value = "水平")
    private String level;

    @ApiModelProperty(value = "专业")
    private String major;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "下次跟进时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime nextTime;

    @ApiModelProperty(value = "职业")
    private String occupation;

    @ApiModelProperty(value = "其他意向")
    private String otherIntention;

    @ApiModelProperty(value = "归属人")
    private String owner;

    @ApiModelProperty(value = "归属人创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ownerTime;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "职业计划")
    private String plan;

    @ApiModelProperty(value = "计划时间")
    private Date planTime;

    @ApiModelProperty(value = "所在省份")
    private String provinces;

    @ApiModelProperty(value = "QQ号")
    private String qq;

    @ApiModelProperty(value = "学习原因")
    private String reasons;

    @ApiModelProperty(value = "所在地区")
    private String region;

    @ApiModelProperty(value = "当前薪资")
    private BigDecimal salary;

    @ApiModelProperty(value = "性别:0-男 1-女")
    private Integer sex;

    @ApiModelProperty(value = "'商机状态 2=跟进中 1=待跟进 3=公海池'")
    @TableField(value = "clue_status")
    private String status;

    @ApiModelProperty(value = "意向学科")
    private String subject;

    @ApiModelProperty(value = "意向课程")
    private String transfer;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  updateTime;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "微信")
    private String weixin;

    @ApiModelProperty(value = "备注")
    private String remark;


}
